﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarErp.Model
{
    public class CarPurchaseApplication
    {
        public CarPurchaseApplication() { }
        public CarPurchaseApplication(User submitter)
        {
            Submitter = submitter;
        }

        public int Id { get; set; }
		public string ApplicantCompany { get; set; } = string.Empty;
        public DateTime ApplicantTime { get; set; }
        public string CarName { get; set; } = string.Empty;
		public string Brand { get; set; } = string.Empty;
		public string Specification { get; set; } = string.Empty;
		public string ModelNumber { get; set; } = string.Empty;
		public string Maker { get; set; } = string.Empty;
		public int Quantity { get; set; }
		public decimal BudgetUnitPrice { get; set; }
        public DateTime PlannedAcquisitionDate { get; set; }
        public string Appendix { get; set; } = string.Empty;
		public string SourceOfFunds { get; set; } = string.Empty;
		public PropertyRight PropertyRight { get; set; }

        public virtual User Submitter { get; set; }
        public virtual CarPurchaseApprovalPaper ApprovalPaper { get; set; }
    }

    public enum PropertyRight
    {
        CompanyOwned,
        LinkedFinancing
    }
}
